package 剑指Offer.easy;

public class 打印从1到最大的n位数 {
    class Solution {
        public int[] printNumbers(int n) {
            int max = (int) Math.pow(10, n) - 1;
            int[] res = new int[max];
            for (int i = 0; i < max; i++) {
                res[i] = i + 1;
            }
            return res;
        }
    }
}
